let createQuestionMostHits = new Vue({
   el:'#createQuestionMostHits',
   data:{
       MostHits:[]
   },
    methods:{
        loadMostHits:function () {
            $.ajax({
               url:"/api/v1/questions/hits",
                dataType:'json',
                success:function (json) {
                        let MostHits=[];
                        let statusText=['未回复','未解决','已解决'];
                        let statusClasses=['text-warning','text-info','text-success'];
                    for (let i=0;i<json.data.length;i++){
                        MostHits[i]=json.data[i];
                        MostHits[i].statusText=statusText[MostHits[i].status];
                        MostHits[i].statusClass=statusClasses[MostHits[i].status];
                    }
                    createQuestionMostHits.MostHits=MostHits;
                }
            });
        }
    },
    created: function () {
        this.loadMostHits();
    }
});